const Admin = require('../models/Admin');
exports.addAdmin = function (adminObj) {
    return Admin.create(adminObj);
}
exports.deleteAdmin = async function (adminId) {
    Admin.destroy({
        where: {
            id: adminId
        }
    })
}
exports.updateAdmin = function (id, adminObj) {
    Admin.update(adminObj, {
        where: {
            id
        }
    })
}
